package com.rfid.project.model;

import javax.persistence.*;

import biz.core.KeyValue;
import biz.util.KeyValueUtil;
import biz.util.StringUtil;
import biz.core.IdEntity;

import java.util.Date;
import java.util.ArrayList;
import java.util.List;

@Entity
public class ProjectFinishApply extends IdEntity {

	// 项目
	@ManyToOne
	@JoinColumn(name = "ProjectID")
	private Project project;

	// 申请人
	@ManyToOne
	@JoinColumn(name = "ApplyPersonID")
	private People applyPerson;

	// 申请说明
	private String applyReason;

	// 申请时间
	private Date applyTime;
	
	//撤销申请时间
	private Date annulDate;

	// 审核人
	@ManyToOne
	@JoinColumn(name = "CheckPersonID")
	private People checkPerson;

	// 审核意见
	private String checkDescription;

	// 审核时间
	private Date checkTime;

	// 批准人
	@ManyToOne
	@JoinColumn(name = "RatifyPersonID")
	private People ratifyPerson;

	// 批准意见
	private String ratifyDescription;

	// 批准时间
	private Date ratifyTime;

	// 状态
	private String status;

	public Project getProject() {
		return project;
	}

	public void setProject(Project project) {
		this.project = project;
	}

	public People getApplyPerson() {
		return applyPerson;
	}

	public void setApplyPerson(People applyPerson) {
		this.applyPerson = applyPerson;
	}

	public String getApplyReason() {
		return applyReason;
	}

	public void setApplyReason(String applyReason) {
		this.applyReason = applyReason;
	}

	public Date getApplyTime() {
		return applyTime;
	}

	public void setApplyTime(Date applyTime) {
		this.applyTime = applyTime;
	}

	public People getCheckPerson() {
		return checkPerson;
	}

	public void setCheckPerson(People checkPerson) {
		this.checkPerson = checkPerson;
	}

	public String getCheckDescription() {
		return checkDescription;
	}

	public void setCheckDescription(String checkDescription) {
		this.checkDescription = checkDescription;
	}

	public Date getCheckTime() {
		return checkTime;
	}

	public void setCheckTime(Date checkTime) {
		this.checkTime = checkTime;
	}

	public People getRatifyPerson() {
		return ratifyPerson;
	}

	public void setRatifyPerson(People ratifyPerson) {
		this.ratifyPerson = ratifyPerson;
	}

	public String getRatifyDescription() {
		return ratifyDescription;
	}

	public void setRatifyDescription(String ratifyDescription) {
		this.ratifyDescription = ratifyDescription;
	}

	public Date getRatifyTime() {
		return ratifyTime;
	}

	public void setRatifyTime(Date ratifyTime) {
		this.ratifyTime = ratifyTime;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public Date getAnnulDate() {
		return annulDate;
	}

	public void setAnnulDate(Date annulDate) {
		this.annulDate = annulDate;
	}

}
